package com.example.lyl.testanimation;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

/**
 * Created by lyl on 2017/3/1.
 */

public class Three extends Activity implements Four.CloseActivity{
    private TextView textView;

    private static final String TAG = "Three";
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second);
        textView= (TextView) findViewById(R.id.text);
        textView.setText("这是第三个页面");
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(Three.this,Four.class));
            }
        });
        SlefActivityManager.getInstance().addActivty(this);
    }


    @Override
    public void finishActivity() {
        Log.d(TAG, "close");
        finish();
    }
}
